package com.itheima;

public class Java_16 {
    public static void main(String[] args) {

        //打印乘法表和三角形
        test(9);
    }
    public static void test(int a){
        //计算机只会打印行，不会打印列
        //打印行
        for (int i = 1; i <= a ; i++) {
            //打印列
            for (int j = 1; j <= i; j++){
                System.out.print(j +"x"+i + "=" +j * i + "\t");
            }
            System.out.println();
        }
    }
}
